Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add min_distance parameter to peak_local_max call #2008

Merged
merged 3 commits into from
Dec 1, 2023

Conversation

iimog
Copy link
Contributor

@iimog iimog commented Nov 17, 2023

Before this change, multiple local maxima were returned even within the min_distance if their values were identical. This lead to over-segmentation in some cases.

See #2006

otherwise multiple local maxima are returned even within the distance if
their values are identical. This lead to lots of over-segmentation. In
particular, multiple perfectly contigous nuclei were split in half.

Related spacetx#2006
@berl
Copy link
Collaborator

berl commented Nov 17, 2023

@nickeener @ctcisar do you have any recommendations for the CI fails above?

@nickeener
Copy link
Contributor

@berl the failure appears to be in the starfish/test/full_pipelines/api/test_iss_api.py::test_iss_pipeline_cropped_data test which is not something that we ever messed with, sorry.

adjust assumption on number of detected cells
@iimog
Copy link
Contributor Author

iimog commented Nov 23, 2023

I found the problem in the iss test. Indeed, the assumption on the number of detected cells had to be updated from 6 to 4. I think this makes sense. The previous pipeline output was this:
iss_old

The new pipeline output is this:
iss_new

So the number of detected cells did change from 6 to 4.

the docker build was failing, because botocore needs urllib3 to be in a
certain version range. Pinning urllib3 to that range fixes the issue.
@iimog
Copy link
Contributor Author

iimog commented Nov 23, 2023

The docker build could not install all dependencies via pip because of this error:

ERROR: botocore 1.32.6 has requirement urllib3<1.27,>=1.25.4; python_version < "3.10", but you'll have urllib3 2.0.7 which is incompatible.

Pinning urllib3 to that range in REQUIREMENTS fixes the build.

@berl
Copy link
Collaborator

berl commented Dec 1, 2023

this is awesome! all that work put in by many people making end-to-end tests of these methods did exactly what it was supposed to. I'll review and merge

@berl berl merged commit a1cbb3b into spacetx:master Dec 1, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants